package week2;

import java.lang.reflect.Array;
import java.util.Arrays;

public class q4 {
    public static void main(String[] args){
        int[] arr={25,63,54,91,14,5,17,25,88,32,44};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        int index=Arrays.binarySearch(arr,14);
        int Index=Arrays.binarySearch(arr,88);
        System.out.println(Arrays.toString(arr));
        System.out.println("元素14的索引值"+index);
        System.out.println(Index);
    }

}
